package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Book;
import com.beans.Novel;

@Mapper
public interface NovelMapper {
    int addNovel(Novel user);

    int updateNovel(Novel user);

    int deleteNovel(int id);

    Novel getNovelByID(int id);

    Novel getNovelByName(String novelname);

    List<Novel> getAllNovel();

    List<Novel> getNovelname(@Param("novelname") String novelname);

    List<Novel> getNovelType(@Param("noveltype") String noveltype);

    int addBook(Book book);

    int deleteBook(String novelname);

    List<Novel> getBook(@Param("userName") String userName);

    Integer getBookByUserName(@Param("userName") String userName,@Param("novelname") String novelname);
}
